import request from "@/utils/request";

/**查询年度类目模版 */
export function getYearClassify(params) {
  return request({
    url: "system/WbClassifyYear/allList",
    method: "get",
    params,
  });
}

/**新增年度类目模版 */
export function setYearClassify(data) {
  return request({
    url: "/system/WbClassifyYear/addOne",
    method: "post",
    data,
  });
}

/**修改年度类目模版 */
export function getYearClassifyDetail(data) {
  return request({
    url: `/system/WbClassifyYear/allList?id=${data}`,
    method: "get",
  });
}

/**修改年度类目模版 */
export function updataYearClassify(data) {
  return request({
    url: "/system/WbClassifyYear/editOne",
    method: "put",
    data,
  });
}

/**删除年度类目模版 */
export function deleteYearClassify(data) {
  return request({
    url: "/system/WbClassifyYear/removeAll",
    method: "delete",
    data,
  });
}
